package com.mtr.databoard.domain.resources;

import com.mtr.databoard.domain.Entity;
import org.bson.types.Binary;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.stereotype.Component;

@Component
public class FileContent extends Entity<String> {
    private Binary content; // 文件内容

    public  FileContent(){}

    public FileContent(String fileId, Binary content) {
        this.setId(fileId);
        this.content = content;
    }

    public String getFileId() {
        return getId();
    }

    public Binary getContent() {
        return content;
    }

    public void setFileId(String fileId) {
        this.setId(fileId);
    }
}
